<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	    <meta content="telephone=no" name="format-detection" />
		<title>常用地址</title>
		<link href="{{asset('/mobile/css/style.css')}}" rel="stylesheet" type="text/css">
	</head>
	<style type="text/css">
		body{
			background-color: #F1F1F1;
		}
		input{
			border: none;
			outline: none;
		}
		.btn-big{
			text-align: center;
			background-color: #D9543B;
			border-radius: 5px;
			font-size: 1.1rem;
			padding: 0.7rem 0;
			color: #F9EAE7;
			width: 90%;
			margin: 50px auto 0;
		}
		.inp-wrap{
			padding: 20px 30px;
			background-color: #FFFFFF;
		}
		.address-inp{
			width: 100%;
		}
		
	</style>
	<body>
		<form action="/mobile/agent/address_store/{{$agent->id}}" method="POST">
			{{csrf_field()}}
			<div class="inp-wrap">
				<input class="address-inp" type="text" name="address" id="address" value="{{$agent->address}}" />
			</div>
			<div class="btn-big" id="go">确认修改</div>
            <div style="text-align:center;font-weight:bold;font-size:13px">
                <span id="err_msg" style="color:red;">
                    @if ($errors->any())          
                      {{ $errors->first() }}
                    @endif
                </span>
            </div>
		</form>
	<script type="text/javascript" src="{{asset('/mobile/js/jquery-1.8.3.min.js')}}"></script>
	<script type="text/javascript">
		// 提交
		$('#go').on('touchstart', function() {
			$(this).parents('form').submit();
		})
	</script>
	</body>
</html>
